package com.tangyuan.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: video_gift_record
 * @Author: jeecg-boot
 * @Date:   2024-03-12
 * @Version: V1.0
 */
@Data
@TableName("video_gift_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class VideoGiftRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    private Integer id;
	/**赠送人*/
    private Long userId;
	/**收到礼物的人*/
    private Long getUserId;
	/**礼物id*/
    private Integer giftId;
	/**礼物图片*/
    private String giftImage;
	/**礼物名*/
    private String giftName;
	/**礼物金额*/
    private BigDecimal giftMoney;
	/**礼物数量*/
    private Integer giftCount;
	/**礼物总金额*/
    private BigDecimal gitCountMoney;
	/**赠送时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**删除标识*/
    @TableLogic
    private Integer isDelete;
}
